home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
MATHEMAT
/
2632.ZIP
/
MERCURYZ.EXE
/
DECAY.EKA
< prev
next >
Wrap
Text File
|
1992-03-24
|
396b
|
12 lines
; This problem demonstrates how to solve a user-defined
; transcendental function of time.
; The problem is to calculate MassUnknown, the mass of
; 100 kg uranium 238 after one million years.
; Also calculate how long it would take to decay to 1 kg.
Mass(Years) := InitialMass * 2^(-Years/HalfLife)
InitialMass = 100
HalfLife = 10e6
MassUnknown = Mass(1e6)
1 = Mass(TimeUnknown)